{__NOLAYOUT__}
<Widget:show col="12" title="新增项目" >
<form method="post" submit-ajax action="{:U('Db/addField')}">
<input type="hidden" name="tb" value="{$Think.get.tb}">
<input type="hidden" name="f" value="{$Think.get.f}">
<div class="row">
    <Ui:field col="3" hideIpt="true" label="在字段之后" >
    <select class="form-control" data-value="{$vo[after]}" name="after">
    <volist name="fields" id="fid">
        <option value="{$fid.field}">{$fid.field}</option>
    </volist>
    </select>
    </Ui:field>


    <Ui:field col="3" name="field" label="字段名称" ></Ui:field>
    <Ui:field col="2" hideIpt="true" label="类型" >
        <select class="form-control" data-value="{$vo[type]}" name="type">
            {:fieldTypeOpt()}
        </select>
    </Ui:field>

    <Ui:field col="2" name="length" label="长度" ></Ui:field>
    
    <Ui:field col="2" hideIpt="true" label="可空" >
        <select class="form-control" data-value="{$vo[isnull]}" name="isnull">
            <option value="NO">否</option>
            <option value="YES">是</option>
        </select>
    </Ui:field>

    <Ui:field col="3" name="default" label="默认值" ></Ui:field>
    <Ui:field col="3" name="comment" label="注释" ></Ui:field>
</div>
</form>
</Widget:show>
